package cate.common.table.item.yoke.sheet;

import cate.common.table.ESheet;
import cate.common.table.item.yoke.row.PowerAttrRow;

import java.util.List;
import java.util.stream.Collectors;

public class PowerAttrSheet extends ESheet<PowerAttrRow> {
    @Override
    public String getSheetName() {
        return "羁绊战斗力属性";
    }

    public List<PowerAttrRow> getRowByProtoIdAndPower(int protoId, long power) {
        return getList().stream().filter(row -> row.protoId == protoId && row.power <= power).collect(Collectors.toList());
    }
}
